import fetch from 'common/src/utils/fetch'
import UTILS from "common/src/utils/utils";
function getSwitchList(data){//开关设置列表
    return fetch ({
        url:`/api/scoremanagementservice/paperAnalysisController/switchList?pageNum_=${data.pageNum_}&pageSize_=${data.pageSize_}`,
        method:'get',
       
    })
}
//操作开关
function operacionswitch(data){
    return fetch({
        url:'/api/scoremanagementservice/paperAnalysisController/switchSet',
        data,
        method:'post'
    })
}
function getStopTimeList(){
    return fetch({
        url:`/api/scoremanagementservice/paperAnalysisController/switchDeadLineGet`,
        method:'get'
    })
}
function getStopTimeLists(){//教务员
    return fetch({
        url:`/api/scoremanagementservice/paperAnalysisController/switchDeadLineGet`,
        method:'get'
    }) 
}
function saveStopnTime(data){
   return fetch ({
       url:'/api/scoremanagementservice/paperAnalysisController/switchDeadLineSet',
       method:'post',
       data
   })
}

function synchronizationData(){
   return fetch({
       url:'/api/scoremanagementservice/paperAnalysisController/paperAnalysisSyncAnalysisData',
       method:'post'
   })
}
export default{
    getSwitchList,
    operacionswitch,
    getStopTimeList,
    saveStopnTime,
    synchronizationData,
    getStopTimeLists
}